#ifndef CRC32_H
#define CRC32_H
#include<stdint.h>
#include<stddef.h>

//extern const uint32_t crc32_table[256];
class Crc{
public:
	Crc();
	~Crc();
	void reset();
	uint32_t value(const char*data,size_t datalen);
	static uint32_t ex_value(uint32_t crc,const char*data,size_t datalen);
private:
	uint32_t _crc;
};

#endif
